<!DOCTYPE html>
<html lang="<%= current_language %>">
<head>
  <meta charset="utf-8"/>
  <title><%= h html_title %></title>
  <meta name="description" content="<%= Redmine::Info.app_name %>"/>
  <meta name="keywords" content="issue,bug,tracker"/>
  <%= csrf_meta_tag %>
  <%= favicon %>
  <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %>
  <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
  <%= javascript_heads %>
  <%= javascript_include_tag "jquery.leanModal.min" %>
  <%= javascript_include_tag 'seems_rateable/jRating', 'seems_rateable/rateable' %>
  <%= heads_for_theme %>
  <%= call_hook :view_layouts_base_html_head %>
  <!-- page specific tags -->
  <%= yield :header_tags -%>
</head>
<body class="<%= h body_css_classes %>">
<div id="wrapper">
  <div id="wrapper2">
    <div id="wrapper3">
      <%= render :partial => 'layouts/base_welcome_header' %>
      <div id="main" class="nosidebar">
        <div id="content_">
          <%= render_flash_messages %>
          <%= yield %>
          <%= call_hook :view_layouts_base_content %>
          <div style="clear:both;"></div>
          <%= render :partial => 'layouts/base_footer' %>
        </div>
      </div>
    </div>

    <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div>
    <div id="ajax-modal" style="display:none;"></div>


  </div>
</div>
<%= call_hook :view_layouts_base_body_bottom %>

<!-- ajax user trace zhangxunhui begin -->
<script type="text/javascript">
	function user_trace_click_project_list(session_id){
    	$.ajax({
			contentType: "application/json; charset=utf-8",
			timeout: 5000,
			url: '/user_traces/click_project_list?session_id=' + session_id,
			dataType: "json"
		});
    }
</script>
<!-- ajax user trace zhangxunhui end -->

<!--update-- get trustie user id 页面加载的时候运行该函数 -->
<script type="text/javascript">
	function getTrustieUserId(){
		/* 获取url中的参数 */
		var Request = new Object();
		Request = GetRequest();
		var trustie_user_id;
		trustie_user_id = Request["user_id"];
		if (trustie_user_id == null){
			/* 表示不是trustie页面跳转 不进行任何操作 */
		}else{
			/* 将trustie_user_id存入session 要用ajax写入session信息 */
			$.ajax({
				contentType: "application/json; charset=utf-8",
				timeout: 5000,
				url: '/user_traces/add_trustie_user_id?trustie_user_id=' + trustie_user_id,
				dataType: "json"
			});
		}
		
	} 　
    window.onload = getTrustieUserId;//页面加载的时候运行该函数
</script>
<!--update-- get trustie user id -->
<Script language="javascript">   
function GetRequest() {   
   var url = location.search; //获取url中"?"符后的字串   
   var theRequest = new Object();   
   if (url.indexOf("?") != -1) {   
      var str = url.substr(1);   
      strs = str.split("&");  
      for(var i = 0; i < strs.length; i ++) {   
         theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);   
      }   
   }   
   return theRequest;   
}   
</script> 
<!--update-- get trustie user id -->

</body>
</html>
